package cn.chi.org.service;

import cn.chi.org.domain.Department;
import cn.chi.org.query.DepartmentQuery;
import cn.chi.util.PageInfo;

import java.util.List;

public interface IDepartmentService {
    void save(Department department);
    void update(Department department);
    void delete(Long id);
    Department queryById(Long id);
    List<Department> queryAll();
    //分页信息
    PageInfo<Department> queryPage(DepartmentQuery query);

    void patchDelete(Long[] ids);

    List<Department> getTree();
}
